# 债券基金(30%)
# 招商安心收益债券C(217011)-60%
# 广发趋势优选灵活配置混合A(000215)-25%
# 南方致远混合A(007415)-15%

# 混合基金(40%)
# 交银施罗德趋势优先混合(519702)-20%
# 华安文体健康主题混合(001532)-10%
# 兴全商业模式优选混合(163415)-20%
# 工银瑞信圆兴混合(009076)-16%
# 易方达蓝筹精选混合(005827)-10%
# 富国通胀通缩主题轮动混合(100039)-4%
# 交银施罗德新成长混合(519735)-4%
# 华安现代生活混合(008290)-4%
# 嘉实核心成长混合(010187)-4%
# 中欧时代先锋股票(004241)-4%
# 广发高端制造(010160)-4%

# 主题基金(20%)
# 信达澳银核心科技混合(007484)-50%
# 易方达环保主题混合(001856)-20%
# 融通新能源汽车主题(009835)-20%
# 前海开源医疗健康(005454)-10%

# 境外基金(10%)
# 华安纳斯达克100(040046)(40%)
# 博时标普500(050025)(60%)

A = 30
A_code = {"217011": 60, "000215": 30, "007415": 10}
A_info = {"217011": "招商安心收益债券C", "000215": "广发趋势优选灵活配置混合A", "007415": "南方致远混合A"}

B = 40
B_code = {"519702": 20, "001532": 10, "163415": 20, "009076": 16, "005827": 10, "100039": 4, "519735": 4, "008290": 4,
          "010187": 4, "004241": 4, "010160": 4}
B_info = {"519702": "交银施罗德趋势优先混合", "001532": "华安文体健康主题混合", "163415": "兴全商业模式优选混合", "009076": "工银瑞信圆兴混合",
          "005827": "易方达蓝筹精选混合", "100039": "富国通胀通缩主题轮动混合", "519735": "交银施罗德新成长混合", "008290": "华安现代生活混合",
          "010187": "嘉实核心成长混合", "004241": "中欧时代先锋股票", "010160": "广发高端制造"}

C = 20
C_code = {"007484": 50, "001856": 20, "009835": 20, "005454": 10}
C_info = {"007484": "信达澳银核心科技混合", "161903": "万家行业优化混合", "001500": "鸿德远见回报混合", "001856": "易方达环保主题混合",
          "009835": "融通新能源汽车主题", "005454": "前海开源医疗健康", "001579": "国泰大农业股票"}

D = 10
D_code = {"040046": 40, "050025": 60}
D_info = {"040046": "华安纳斯达克100", "050025": "博时标普500"}

# x = input("输入购买金额：")
x = 6000

# A 组基金购买金额
for k, v in A_code.items():
    y = x * A * v * 0.0001
    print(f"({k}){A_info[k]} {y}")
print("-------------------------------------")

# B 组基金购买金额
for k, v in B_code.items():
    y = x * B * v * 0.0001
    print(f"({k}){B_info[k]} {y}")
print("-------------------------------------")

# C 组基金购买金额
for k, v in C_code.items():
    y = x * C * v * 0.0001
    print(f"({k}){C_info[k]} {y}")
print("-------------------------------------")

# D 组基金购买金额
for k, v in D_code.items():
    y = x * D * v * 0.0001
    print(f"({k}){D_info[k]} {y}")
